import { request } from './request.js'

export default {
  // 生成订单
  generateOrder: function (params) {
    return request('order/v1/buy', params)
  },
  // 订单付款
  payOrder: function (params) {
    return request('order/v1/pay', params)
  },
  // 订单付款
  checkOrderStatus: function (params) {
    return request('order/v1/pay/status', params)
  },
  // 我的订单
  recordOrder: function (params) {
    return request('order/v1/record', params)
  },
  // 用户退款
  applyRefund: function (params) {
    return request('order/v1/refund', params)
  },
}